package com.bw.entity;

import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.File;

@Data
public class HouseAddParam {
    @NotBlank(message = "名称必填")
    private String name;
    @NotBlank(message = "地址必填")
    private String address;
    @NotNull(message = "省份必填")
    private Integer provinceId;
    @NotNull(message = "城市必填")
    private Integer cityId;
    @NotNull(message = "区必填")
    private Integer quId;
    @NotNull(message = "图片必填")
    private MultipartFile picFile;  // 图片本身 是一个文件 MySQL不存储这个文件

    private String picUrl; // 图片的访问路径  MySQL 存储图片的访问路径

}
